package com.syn.vr.cic;

public class CicConfiguration {
    private static CicConfiguration instance;
    private long lastTime;

    public synchronized static CicConfiguration getInstance() {
        if (instance == null) {
            instance = new CicConfiguration();
        }
        return instance;
    }


    public void setLastTime() {
        this.lastTime = System.currentTimeMillis();
    }

    public boolean canOpen() {
        return System.currentTimeMillis() - lastTime > 2000;
    }
}
